<?php


namespace Part21_SingletonMode\Code1;


require_once '../../autoload.php';

$s1 = Singleton::getInstance();
$s2 = Singleton::getInstance();

if ($s1 === $s2) {
    echo "两个对象是相同的实例";
}